package it.uniroma2.art.coda.pearl.parser.antlr;

import it.uniroma2.art.coda.interfaces.ParserPR;
import it.uniroma2.art.coda.pearl.parser.PearlParser;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class ANTLRPRPBundle implements BundleActivator {

	public void start(BundleContext context) throws Exception {
		System.out.println("ANTLRParserPR ADDED to FELIX");
		String description = "A parser for a Projection Rule file written according to a grammar specified in a ANTLR file";
		context.registerService(ParserPR.class.getName(), new PearlParser("ANTLRParserPR", description), null);

	}

	public void stop(BundleContext arg0) throws Exception {
	}
}